﻿@using FFLTask.GLB.Global.Enum
@model FFLTask.SRV.ViewModel.Task.EditModel
<div name="@TaskProcess.InProcess">
@if (Model.Owner != null
     && Model.CurrentUser.Id == Model.Owner.Id)
{
    if (Model.CurrentStatus.Stage == (int)Status.Assign
        || Model.CurrentStatus.Stage == (int)Status.Own
        || Model.CurrentStatus.Stage == (int)Status.BeginWork
        || Model.CurrentStatus.Stage == (int)Status.Pause
        || Model.CurrentStatus.Stage == (int)Status.Doubt
        || Model.CurrentStatus.Stage == (int)Status.Update
        || Model.CurrentStatus.Stage == (int)Status.Complete
        || Model.CurrentStatus.Stage == (int)Status.RefuseAccept
        || Model.CurrentStatus.Stage == (int)Status.Dissent)
    {
        @Html.Partial("EditColumns/_Subtitle", TaskProcess.InProcess, new ViewDataDictionary { { "Edit", true } })
        @Html.EditorFor(m => m, "_EditInProcess")
    }
}
</div>